﻿#include "TableMgr.h"


static TableMgr* _tableMgr = nullptr;
TableMgr::TableMgr()
{
}

TableMgr::~TableMgr()
{
}

//获取单例
TableMgr* TableMgr::getInstance()
{
	if (_tableMgr == nullptr)
	{
		_tableMgr = new TableMgr();
		_tableMgr->init();
	}
	return _tableMgr;
}

//初始化所有表格
void TableMgr::init()
{
	_testdataonetable = new TestDataOneTable();
	_testdataonetable->init();

	_gamemusictable = new GameMusicTable();
	_gamemusictable->init();

	_gameffectable = new GameEffectTable();
	_gameffectable->init();

	_GBtable = new GBtestTable();
	_GBtable->init();

	_UTFtable = new UTFtestTable();
	_UTFtable->init();
}